package com.hhxy.stringbuilder;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int[] arr1 = {1,2,3};
        int[] arr2 = {4,5,6};
   /*     int a = 1;
        a = 2;*/
     /*   void arraycopy(Object src,  int  srcPos,
        Object dest, int destPos,
        int length);*/
        System.arraycopy(arr1,1,arr2,1,2);
        System.out.println(Arrays.toString(arr2));
        arr1[2] = 10;
        System.out.println(Arrays.toString(arr2));
        System.out.println(Arrays.toString(arr1));

    }
}
